package com.lzl.controller;

import com.lzl.dto.DriverUser;
import com.lzl.responese.ResponseResult;
import com.lzl.service.DriverUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * //TODO
 *
 * @author zhaolinlin
 * @description //TODO
 * @createTime 2022/9/2 9:50
 */
@RestController
public class DriverUserController {

    @Autowired
    DriverUserService driverUserService;

    @PutMapping("/driver-user")
    public ResponseResult updateDriverUser(@RequestBody DriverUser driverUser){
        return driverUserService.updateDriverUser(driverUser);
    }

}
